import { lightColors, drakColors } from './Colors';
import GDynamicValue from '../utils/DarkMode/GDynamicValue';

interface IDynamicColors {
  tintColor: any;
  tabIconDefault: any;
  tabIconSelected: any;
  tabBar: any;
  errorBackground: any;
  errorText: any;
  warningBackground: any;
  warningText: any;
  noticeBackground: any;
  noticeText: any;
  extraGary: any;
  screenBackground: any;
  deleteButton: any;
  alertColor: any;
  faultColor: any;
  warnColor: any;
  notifiColor: any;
  normalBackgroundColor: any;
  cardBackgroundColor: any;
  screenBackgroundGaryColor: any;
  normalTextColor: any;
  normalTextGaryColor: any;
  borderBottomColor: any;
  titleTextColor: any;
  maskColor: any;
  navBarColor: any;
  subTitleTextColor: any;
  navTitleColor: any;
  frontColor: any;
  networkColor: string;
  stepColor: string;
}

const colors = {};
for (const key in lightColors) {
  if (lightColors.hasOwnProperty(key)) {
    const lightElement = lightColors[key];
    let drakElement = drakColors[key];
    if (!drakElement) {
      drakElement = lightElement;
    }
    colors[key] = new GDynamicValue(lightElement, drakElement);
  }
}

export default colors as IDynamicColors;
